import { createApp } from 'vue'
import App from './App.vue'
import router from './permission'
import store from './store'
import i18n from './i18n'

import { ElLoading } from 'element-plus'

import './styles/index.scss'

import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'

const app = createApp(App)

app.config.globalProperties.$ELEMENT = {
  size: 'medium',
  // zIndex: 3000,
}

app.directive('loading', ElLoading.directive)

app.use(router).use(store).use(i18n).use(VXETable).mount('#app')

export default app
